package kr.hkit.powerjava.chther05.work;

import java.util.Scanner;

public class Programming2 {
	public static void main(String[] args) {
		int in;
		int in2;
		int in3;
		Scanner input = new Scanner(System.in);
		System.out.print("정수를 입력하시오:");
		in = input.nextInt();
		System.out.print("정수를 입력하시오:");
		in2 = input.nextInt();
		if (in < in2) {
			int in4 = in2 / in;
			int in5 = in2 % in;
			System.out.println(in2 + "을" + in + "으로나눈 몫은" + in4 + "이고 나머지는"
					+ in5 + "입니다");
		}
		if (in > in2) {
			int in6 = in / in2;
			int in7 = in % in2;
			System.out.println(in + "을" + in2 + "으로나눈 몫은" + in6 + "이고 나머지는"
					+ in7 + "입니다");
		} else if (in == in2) {
			int in6 = in / in2;
			int in7 = in % in2;
			System.out.println(in + "을" + in2 + "으로나눈 몫은" + in6 + "이고 나머지는"
					+ in7 + "입니다");
		}
	}
}
